package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.JobEvaluationInformationBean;

/**
 * Created by admin on 2018/9/9.
 */

public class TabAdapter extends BaseQuickAdapter<JobEvaluationInformationBean.OrgPostItemListBean> {

    public TabAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_tab;
    }

    @Override
    protected void convert(BaseViewHolder holder, JobEvaluationInformationBean.OrgPostItemListBean item) {
        holder.setText(R.id.itemFormText01, item.getMouthDate());
        holder.setText(R.id.itemFormText02, item.getReason());
        holder.setText(R.id.itemFormText03, item.getItemScore() + "分");

    }
}
